export function getTime(date) {
     const currentDate = new Date(date)
     const year = currentDate.getFullYear()
     const month = currentDate.getMonth() + 1
     const day = currentDate.getDate()
     return year + '-' + month + '-' + day
  }
  